package com.kyxx.topics.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.kyxx.topics.R;

/**
 * Created by Administrator on 2016/10/15.
 */
public class TestAdapter extends BaseAdapter{
    private Context context;
    public TestAdapter(Context context) {
        this.context=context;
    }

    @Override
    public int getCount() {
        return 1;
    }

    @Override
    public Object getItem(int i) {
        return null;
    }

    @Override
    public long getItemId(int i) {
        return 0;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        return view=View.inflate(context, R.layout.item_line, null);
    }
}
